package legoproject.TestStubs;

import legoproject.*;
import java.awt.*;
import javax.swing.*;

public class UltrasonicSensorTestStub {

    private SimpleSlider panel;

    public UltrasonicSensorTestStub(String name, PCReporter reporter) {
        panel = new SimpleSlider(20, "UltrasonicSensorTestStub " + name);
        panel.setOpaque(true);
        reporter.addComponent(panel);
    }

    public int getDistance() {
        return panel.getValue();
    }
}

